unit uLog;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ComCtrls, ExtCtrls, StdCtrls;

type
  TfmLog = class(TForm)
    LogMemo: TMemo;
    pnl1: TPanel;
    stat1: TStatusBar;
    procedure FormDestroy(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure FormShow(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  fmLog: TfmLog;

implementation

uses uMain, HotLog;

{$R *.dfm}

procedure TfmLog.FormClose(Sender: TObject; var Action: TCloseAction);
begin
  if fmMain<>nil then fmMain.dxBarLargeButton3.down := True;
  if hLog.StopVisualFeedBack then Action:=caFree else Action := caHide;
end;

procedure TfmLog.FormCreate(Sender: TObject);
begin
  hLog.DisplayFeedBackInto(LogMemo);
end;

procedure TfmLog.FormDestroy(Sender: TObject);
begin
  hLog.StopVisualFeedBack;
end;

procedure TfmLog.FormShow(Sender: TObject);
begin
  if fmMain<>nil then fmMain.dxBarLargeButton3.down := False;
end;

end.
